<template>
  <div>
    <div>
      <el-button
        type="info"
        icon="el-icon-arrow-left"
        size="mini"
        @click="fanhuiClick"
        >返回</el-button
      >
    </div>

    <div>
      <el-form
        label-width="80px"
        :label-position="labelPosition"
        :inline="true"
        :model="formLabelAlign"
      >
        <el-form-item label="用户名（必填）">
          <el-input v-model="formLabelAlign.username"></el-input>
        </el-form-item>
        <el-form-item label="电话">
          <el-input v-model="formLabelAlign.phone"></el-input>
        </el-form-item>
        <el-form-item label="真实姓名（必填）">
          <el-input v-model="formLabelAlign.realName"></el-input>
        </el-form-item>
        <el-form-item label="昵称">
          <el-input v-model="formLabelAlign.nickname"></el-input>
        </el-form-item>
        <el-form-item label="Email">
          <el-input v-model="formLabelAlign.email"></el-input>
        </el-form-item>
        <el-form-item label="地址">
          <el-input v-model="formLabelAlign.address"></el-input>
        </el-form-item>
        <el-form-item label="学历">
          <el-input v-model="formLabelAlign.education"></el-input>
        </el-form-item>
        <el-form-item label="毕业院校">
          <el-input v-model="formLabelAlign.school"></el-input>
        </el-form-item>
        <el-form-item label="身份证号">
          <el-input v-model="formLabelAlign.card"></el-input>
        </el-form-item>
        <el-form-item label="银行账号">
          <el-input
            v-model="formLabelAlign.bankCaed"
            placeholder="（工行）"
          ></el-input>
        </el-form-item>
        <el-form-item label="部门">
          <el-select v-model="formLabelAlign.deptId" placeholder="总医院">
            <el-option label="总医院" value="zyy"></el-option>
            <el-option label="肿瘤科" value="zlk"></el-option>
            <el-option label="泌尿科" value="bnk"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="性别">
          <el-select v-model="formLabelAlign.sex" placeholder="男">
            <el-option label="男" value="nan"></el-option>
            <el-option label="女" value="nv"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="职位">
          <el-select v-model="formLabelAlign.positionId" placeholder="院长">
            <el-option label="院长" value="yz"></el-option>
            <el-option label="副院长" value="fyz"></el-option>
            <el-option label="党委书记" value="dwsj"></el-option>
            <el-option label="办公室主任" value="bgszr"></el-option>
            <el-option label="主任医师" value="zrys"></el-option>
            <el-option label="医师" value="ys"></el-option>
            <el-option label="护士长" value="hsz"></el-option>
            <el-option label="护士" value="hs"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="角色">
          <el-select v-model="formLabelAlign.title" placeholder="超级管理员">
            <el-option label="超级管理员" value="nan"></el-option>
            <el-option label="院长" value="nv"></el-option>
            <el-option label="主任" value="nv"></el-option>
            <el-option label="秘书" value="nv"></el-option>
            <el-option label="助理" value="nv"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="工资">
          <el-input v-model="formLabelAlign.sale"></el-input>
        </el-form-item>
        <el-form-item label="入职时间">
          <el-input
            v-model="formLabelAlign.employeeDate"
            placeholder=""
          ></el-input>
        </el-form-item>
      </el-form>
      <el-button type="primary">保存</el-button>
      <el-button type="info">取消</el-button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      labelPosition: "top",
      formLabelAlign: {},
    };
  },
  methods: {
    fanhuiClick() {
      this.$router.push("/home/userViews/userControl");
    },
  },
};
</script>

<style scoped lang="less">
/deep/ .el-input__inner {
  width: 500px;
}

/deep/ .el-form--inline {
  padding: 0 10px;
}
</style>